Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wc/snap to terrain - CsvSpawner: Make "snap to terrain" based on collision layer. #74

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

wc-robotec
Copy link
Contributor

I've added CollisionLayer to AssetConfig.
When Place On Terrain is Enabled - then a layer can be chosen to which object will be attached on spawn.
Screenshot from 2024-10-10 13-05-47
Screenshot from 2024-10-10 13-01-01

Copy link
Contributor

@pijaro pijaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the namespaces and formatting. Also, some changes look like reverting to the older version (most probably because you were using the older snapshot when working on it).

Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h Outdated Show resolved Hide resolved
Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.cpp Outdated Show resolved Hide resolved
@wc-robotec
Copy link
Contributor Author

wc-robotec commented Oct 10, 2024

I've copied the code from version I had in other repo.
Reverted changes and applied only pieces of code I've changed.

Copy link
Contributor Author

@wc-robotec wc-robotec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Collaborator

@michalpelka michalpelka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is not fromated:
image
And there is a problem with missing headers
/home/michalpelka/github/ROSConDemo2023WorkDir/robotec-o3de-tools/Gems/CsvSpawner/Code/Source/CsvSpawner/CsvSpawnerUtils.h:63:3: error: use of undeclared identifier 'AzPhysics'
AzPhysics::CollisionLayer m_selectedCollisionLayer; //!< To which collision layer this target will be attached

@michalpelka
Copy link
Collaborator

Please fix compilation error:
https://gist.github.com/michalpelka/6ff222566d2a56527dc6852c13d818b4

Signed-off-by: wc-robotec <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
Signed-off-by: wc-robotec <[email protected]>
@wc-robotec
Copy link
Contributor Author

Fixed missing header error and added Az_Asert.
Also applied clang format - which fails ?
Could you please check if it's correctly formatted?

Copy link
Collaborator

@michalpelka michalpelka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting was changed to other than o3de default. Please revert it

Signed-off-by: Michał Pełka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants